﻿using System;
using System.Collections.ObjectModel;
namespace Clipper.Model
{
	/// <summary>
	/// TestTubeInfo:实体类(属性说明自动提取数据库字段的描述信息)
	/// </summary>
	[Serializable]
	public partial class TestTubeInfo:AbstractModel
	{
		public TestTubeInfo()
		{}
		#region Model
		private long _testtubeid;
		private long _sampleid;
        private SampleInfo _sampleInfo;
        private ObservableCollection<DetectItems> _detectItems;
		private int _testtubestate;
		private int _testtubeselfid;
        private int _holenumber;
        private string _shelfBarcode;
		private string _note;
		/// <summary>
		/// 
		/// </summary>
		public long testTubeID
		{
            set
            {
                _testtubeid = value;
                NotifyPropertyChanged("testTubeID");
            }
			get{return _testtubeid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public long SampleID
		{
            set
            {
                _sampleid = value;
                NotifyPropertyChanged("SampleID");
            }
			get{return _sampleid;}
		}
        public SampleInfo SampleInfo
        {
            set 
            {
                _sampleInfo = value;
                this.NotifyPropertyChanged("SampleInfo");
            }
            get 
            {
                if (_sampleInfo == null)
                {
                    _sampleInfo = new SampleInfo();
                }
                return _sampleInfo;
            }
        }
        /// <summary>
        /// 试管的检测项
        /// </summary>
        public ObservableCollection<DetectItems> DetectItems
        {
            set 
            { 
                _detectItems = value;
                this.NotifyPropertyChanged("DetectItems");
            }
            get
            {
                if (_detectItems == null)
                {
                    _detectItems = new ObservableCollection<DetectItems>();
                }
                return _detectItems;
            }
        }
		/// <summary>
		/// 
		/// </summary>
		public int TestTubeState
		{
            set
            {
                _testtubestate = value;
                NotifyPropertyChanged("TestTubeState");
            }
			get{return _testtubestate;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int TestTubeSelfID
		{
            set
            {
                _testtubeselfid = value;
                NotifyPropertyChanged("TestTubeSelfID");
            }
			get{return _testtubeselfid;}
		}
		/// <summary>
		/// 
		/// </summary>
		public int holeNumber
		{
            set
            {
                _holenumber = value;
                NotifyPropertyChanged("holeNumber");
            }
			get{return _holenumber;}
		}
		/// <summary>
		/// 
		/// </summary>
		public string note
		{
            set
            {
                _note = value;
                NotifyPropertyChanged("note");
            }
			get{return _note;}
		}
        /// <summary>
        /// 试管架条形码
        /// </summary>
        public string ShelfBarcode
        {
            get
            {
                return _shelfBarcode;
            }
            set
            {
                _shelfBarcode = value;
                NotifyPropertyChanged("ShelfBarcode");
            }
        }
		#endregion Model

	}
}

